/**
 * LogTask.java 
 * Copyright © 2014-2016, 杭州泊享网络科技有限公司
 * 
 * @author Liu Tao
 * @create 2015年6月22日
 */
package com.pshare.artemis.job;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.pshare.artemis.config.service.ConfigService;

/**
 * 定时更新AccessToken
 */
@Component
public class GetAccessTokenTask {

	private static final Logger logger = Logger.getLogger(GetAccessTokenTask.class);

	@Autowired
	private ConfigService configService;

	/**
	 * 更新AccessToken
	 */
	@Scheduled(cron="0 0 0/1 * * ?")
	public void removeDeviceToken() {
		configService.getWXAccessToken();
	}


}
